package com.xunker.order.service;

import com.baomidou.mybatisplus.core.metadata.IPage;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import com.xunker.appointment.model.orderinfo.OrderInfo;
import com.xunker.appointment.vo.order.OrderCountQueryVo;
import com.xunker.appointment.vo.order.OrderQueryVo;

import java.util.Map;

public interface OrderService extends IService<OrderInfo> {
    //保存订单
    Long saveOrder(String scheduleId, String patientId);

    OrderInfo getOrder(String orderId);

    IPage<OrderInfo> getPage(Page<OrderInfo> objectPage, OrderQueryVo orderQueryVo);
    /**
     * 取消订单
     * @param orderId
     */
    Boolean cancelOrder(Long orderId);

    void patientTips();

    Map<String, Object> getCountMap(OrderCountQueryVo orderCountQueryVo);
}
